#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/xfeatures2d.hpp>
#include <opencv2/xfeatures2d/nonfree.hpp>
#include <deque>
#include <QLabel>
using namespace cv;
using namespace std;

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    cv::Mat m_totalImg;

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    // 输入图像路径，显示图像到label控件上
    void showImg(String imgPath, QLabel* label);

    void stitchImg(deque<cv::Mat> imgs);

    vector<string> selectPaths();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
